package Demo05.Recursion;
//构造方法不能递归

public class Demo01Recursion {
    public static void main(String[] args) {
        a(1);
    }

    private static void a(int i) {
        System.out.println(i);
        if(i == 10000){
            return;
        }
        a(++i);
    }
}
